use std::collections::HashSet;

/// 统计不重复元素个数的算法，输⼊为逗号分隔的字符串。(20)
pub fn new_count_distinct(input_str: &str) -> usize {
    input_str.split(",").collect::<HashSet<_>>().len()
}
